/*
 * @Description: count的action方法
 * @Author: 姚泽毅
 * @Date: 2021-08-31 19:26:02
 * @LastEditTime: 2021-08-31 20:56:11
 */
import { INCREMENT, DECREMENT } from './constant';

export const createIncrementAction = data => ({ type: INCREMENT, data })
export const createDecrementAction = data => ({ type: DECREMENT, data })
export const createIncrementAsyncAction = (data, time) => {
    return (dispatch) => {
        setTimeout(() => {
            dispatch(createIncrementAction(data))
        }, time)
    }

}